<% if(@varclass=='first')%>
	<% if(news.class == ActionItemEntry)%>
	    <div class="<%= @varclass %>">
	        <%= content_tag(:span,link_to(news.name, :action => 'edit', :controller=>"projects", :id => news.action_item_id))%>
	       	updated <%= content_tag(:span, news.created_at)%> ago
	    	<%=news.note%> Modified by <%= news.created_by.login %>
			| Status: <%= news.status%> 
			| Due in <%= time_ago_in_words(news.due)%> 
			| Due date: <%= news.due.strftime("%a %b %d, %Y")%>
		</div>
	<% elsif(news.class == ProjectEntry)%>
		<div class="<%= @varclass %>">
	        <%= content_tag(:span,link_to(news.name,:action => 'edit_project', :controller=>"projects", :id => news.project_id))%>
	        updated <%= content_tag(:span, news.created_at)%> ago
			<%=news.note%>
			Status: <%= news.status%> 
			| Due in <%= time_ago_in_words(news.due)%> 
			| Due date: <%= news.due.strftime("%a %b %d, %Y")%>
		</div>
	<% end %>
<% elsif(@varclass=='last')%>
	<% if(news.class == ActionItemEntry)%>
	    <div class="<%= @varclass %>">
	        <%= content_tag(:span,link_to(news.name, :action => 'edit', :controller=>"projects", :id => news.action_item_id))%>
	       	updated <%= content_tag(:span, news.created_at)%> ago
	    	<%=news.note%> Modified by <%= news.created_by.login %>
			| Status: <%= news.status%> 
			| Due in <%= time_ago_in_words(news.due)%> 
			| Due date: <%= news.due.strftime("%a %b %d, %Y")%>
		</div>
	<% elsif(news.class == ProjectEntry)%>
		<div class="<%= @varclass %>">
	        <%= content_tag(:span,link_to(news.name,:action => 'edit_project', :controller=>"projects", :id => news.project_id))%>
	        updated <%= content_tag(:span, news.created_at)%> ago
			<%=news.note%>
			Status: <%= news.status%> 
			| Due in <%= time_ago_in_words(news.due)%> 
			| Due date: <%= news.due.strftime("%a %b %d, %Y")%>
		</div>
	<% end %>
<% elsif(@varclass=='middle')%>
	<% if(news.class == ActionItemEntry)%>
	    <div class="<%= @varclass %>">
	        <%= content_tag(:span,link_to(news.name, :action => 'edit', :controller=>"projects", :id => news.action_item_id))%>
	       	updated <%= content_tag(:span, news.created_at)%> ago
	    	<%=news.note%> Modified by <%= news.created_by.login %>
			| Status: <%= news.status%> 
			| Due in <%= time_ago_in_words(news.due)%> 
			| Due date: <%= news.due.strftime("%a %b %d, %Y")%>
		</div>
	<% elsif(news.class == ProjectEntry)%>
		<div class="<%= @varclass %>">
	        <%= content_tag(:span,link_to(news.name,:action => 'edit_project', :controller=>"projects", :id => news.project_id))%>
	        updated <%= content_tag(:span, news.created_at)%> ago
			<%=news.note%>
			Status: <%= news.status%> 
			| Due in <%= time_ago_in_words(news.due)%> 
			| Due date: <%= news.due.strftime("%a %b %d, %Y")%>
		</div>
	<% end %>
<% elsif(@varclass=='standalone')%>
	<% if(news.class == ActionItemEntry)%>
	    <div class="<%= @varclass %>">
	        <%= content_tag(:span,link_to(news.name, :action => 'edit', :controller=>"projects", :id => news.action_item_id))%>
	       	updated <%= content_tag(:span, news.created_at)%> ago
	    	<%=news.note%> Modified by <%= news.created_by.login %>
			| Status: <%= news.status%> 
			| Due in <%= time_ago_in_words(news.due)%> 
			| Due date: <%= news.due.strftime("%a %b %d, %Y")%>
		</div>
	<% elsif(news.class == ProjectEntry)%>
		<div class="<%= @varclass %>">
	        <%= content_tag(:span,link_to(news.name,:action => 'edit_project', :controller=>"projects", :id => news.project_id))%>
	        updated <%= content_tag(:span, news.created_at)%> ago
			<%=news.note%>
			Status: <%= news.status%> 
			| Due in <%= time_ago_in_words(news.due)%> 
			| Due date: <%= news.due.strftime("%a %b %d, %Y")%>
		</div>
	<% end %>
<%end%>